package com.hejing.面向对象特征之三_多态.初识多态;

/**
 * ClassName: Dog
 * Package: com.hejing.面向对象特征之三_多态.初识多态
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-03-26 14:46
 * @Version: 1.0
 */
public class Dog extends Animal{
    public void eat() {
        System.out.println("狗吃骨头");
    }

    public void jump() {
        System.out.println("狗急跳墙");
    }

    // 特有方法:
    public void watchDoor() {
        System.out.println("狗狗看家");
    }
}




















